﻿namespace MhAdmin.System;

/// <summary>
/// 规则日志分页查询参数
/// </summary>
public class RulesLogPageInput : BasePageInput
{
    /// <summary>
    /// 编号
    /// </summary>
    public string RuleCode { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    public string RuleName { get; set; }

    /// <summary>
    /// 使用日期
    /// </summary>
    public string UsedDate { get; set; }

    /// <summary>
    /// 已使用数量
    /// </summary>
    public long? Used { get; set; }
}

/// <summary>
/// 添加规则日志参数
/// </summary>
public class RulesLogAddInput
{
    /// <summary>
    /// 编号
    /// </summary>
    [Required(ErrorMessage = "RuleCode不能为空")]
    public string RuleCode { get; set; }

    /// <summary>
    /// 使用日期
    /// </summary>
    public string UsedDate { get; set; }

    /// <summary>
    /// 已使用数量
    /// </summary>
    [Required(ErrorMessage = "Used不能为空")]
    public long? Used { get; set; }
}

/// <summary>
/// 修改规则日志参数
/// </summary>
public class RulesLogEditInput : RulesLogAddInput
{
    /// <summary>
    /// Id
    /// </summary>
    [IdNotNull(ErrorMessage = "Id不能为空")]
    public long Id { get; set; }
}
